package cn.bugstack.infrastructure.dao;

import cn.bugstack.infrastructure.dao.po.StrategyAward;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 19872
 * 奖品策略详情表 dao
 */
@Mapper
public interface IStrategyAwardDao {
    /**
     * @return 奖品策略列表
     */
    List<StrategyAward> queryStrategyAwardList();

    List<StrategyAward> queryStrategyAwardListByStrategyId(Long strategyId);

    String queryStrategyAwardRuleValue(StrategyAward strategyAward);

    void updateStrategyAwardStock(StrategyAward strategyAward);

    StrategyAward queryStrategyAwardEntity(StrategyAward strategyAward);

    List<StrategyAward> queryStrategyAward(Long strategyId, Integer[] awardIds);
}
